---
id: "ignore-decorator"
keywords: ["ignore", "decorator"]
name: "@ignore"
summary: "This is the `@ignore` decorator."
category: "decorators"
---

The `@ignore` decorator "hides" a parameter of an `external` function on the JS side. It's useful give a function call more type context without impacting the resulting JS.

<CodeTab labels={["ReScript", "JS Output"]}>

```res
@val external doSomething: (@ignore 'a, 'a) => unit = "doSomething"

doSomething("this only shows up in ReScript code", "test")
```

```js
doSomething("test");
```

</CodeTab>

### References

- [Bind to JS Function (Ignore Arguments)](../docs/manual/bind-to-js-function.mdx#ignore-arguments)
